import {get, post} from "@/utils/http"

// 处方信息处理接口
// 查询所有处方信息
export function getAllPrescription(param){
    let url = "/api/prescription/getAllPrescription"
    return get(url, param)
}

// 条件查询处方信息
export function getPrescriptionWithCondition(param){
    let url = "/api/prescription/getPrescriptionWithCondition"
    return get(url, param)
}

// 新增处方信息
export function addPrecription(param){
    let url = "/api/prescription/createPrescription"
    return post(url, param)
}

// 更新处方信息
export function updatePrescription(param){
    let url = "/api/prescription/updatePrescription"
    return post(url, param)
}

